/**
 * Created by Administrator on 2018/api/11/api/28 0028.
 */
import {getRequest, postRequest, putRequest, deleteRequest, uploadFileRequest} from './api'

//代理商注册
export const agentRegister = (params) => {
  return postRequest('/api/agent_register.rm', params)
};

// 修改用户密码
export const resetPwd = (params) => {
  return postRequest('/api/agent_resetpwd.rm', params)
};

//代理商登录
export const agentLogin = (params) => {
  return postRequest('/api/agent_login.rm', params)
};

//代理商信息
export const agentInfo = (params) => {
  return postRequest('/api/agent_info.rm', params)
};

//代理商下级
export const agentChildrenList = (params) => {
  return postRequest('/api/agent_children_list.rm', params)
};

//设置加减价组
export const setAgentPrice = (params) => {
  return postRequest('/api/set_agentPrice.rm', params)
};

//新增加减价组
export const getAgentPriceList = (params) => {
  return postRequest('/api/get_agentPrice_list.rm', params)
};

//新增加减价组
export const addAgentPrice = (params) => {
  return postRequest('/api/add_agentPrice.rm', params)
};

//代理商折扣信息
export const agentDiscount = (params) => {
  return postRequest('/api/get_agentDiscount.rm', params)
};

//贵宾厅数据
export const viproomData = (params) => {
  return postRequest('/api/agent_viproomlist.rm', params)
};

//贵宾厅详情
export const getViproomDetail = (params) => {
  return postRequest('/api/agent_viproom_detail.rm', params)
};

//校验预约时间
export const checkAppointmentTime = (params) => {
  return postRequest('/api/check_appointment_time.rm', params)
};

//贵宾通道数据
export const viponlyData = (params) => {
  return postRequest('/api/agent_viponlylist.rm', params)
};

//获取验证码
export const getSmscode = (params) => {
  return postRequest('/api/user_get_smscode.rm', params)
};

//订单数据
export const getOrderList = (params) => {
  return postRequest('/api/get_order_list.rm', params)
};

//订单详情数据
export const getOrderDetail = (params) => {
  return postRequest('/api/get_order_detail.rm', params)
};

//预约详情
export const getAppointmentOrderDetail = (params) => {
  return postRequest('/api/user_order_appointment_detail.rm', params)
};

//订单提交
export const orderSubmit = (params) => {
  return postRequest('/api/order_submit.rm', params)
};

//订单支付提交
export const orderGoPay = (params) => {
  return postRequest('/api/order_pay_sub.rm', params)
};

//删除订单
export const orderDel = (params) => {
  return postRequest('/api/order_del.rm', params)
};

//商品数据
export const getAgentGoodDetail = (params) => {
  return postRequest('/api/agent_goods_detail.rm', params)
};

//代理商钱包
export const agentWallet = (params) => {
  return postRequest('/api/agent_wallet.rm', params)
};

//代理商余额
export const agentBalance = (params) => {
  return postRequest('/api/agent_balance.rm', params)
};

//获取物品详情
export const getAccountGoodsInfo = (params) => {
  return postRequest('/api/get_accountGoodsInfo.rm', params)
};

//代理商提交客户手机号跟备注信息
export const agentPerfectAccountGoodsInfo = (params) => {
  return postRequest('/api/agent_perfect_accountGoodsInfo.rm', params)
};


//得到订单支付结果
export const orderPayResult = (params) => {
  return postRequest('/api/order_pay_result.rm', params)
};


//坐标转换
export const getMapInfo = (params) => {
  params['ak'] = 'iExde9KXwNrIHgZU4CzUCCYsQ7Ues96I';
  params['output'] = 'json';
  params['pois'] = 1;
  params['latest_admin'] = 1;
  return getRequest('/geocoder/v2/', params)
};



